package com.itheima.project.feign;

import com.itheima.project.basic.ResponseWrap;
import com.itheima.project.vo.dict.PlacesVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @ClassName PlacesFeign.java
 * @Description 地区feign服务
 */
@FeignClient(value = "module-dict-web")
public interface PlacesFeign {

    /***
     * @description 查询下级
     * @param parentId 父层Id
     * @return
     */
    @GetMapping("places/{parentId}")
    public ResponseWrap<List<PlacesVo>> findPlacesVoListByParentId(@PathVariable("parentId")Long parentId);
}
